import Vue from 'vue'
import Antd from 'ant-design-vue'
import '@assets/less/index.less'
import '@/apilist'
import VCharts from 'v-charts'// 引入vchart
import ryweb from '@/ryweb'// 引入公共依赖
import 'amfe-flexible'
import '@/utils/resizeView'
import VueCookies from 'vue-cookies'
import hasPermission from '@/utils/hasPermission'
import components from '@/components'
import store from './store'
import router from './router'
import '@/utils/validate'// 正则校验
import '@/utils/directive'// 指令
// import '@/mock'
import Print from '@/utils/print'

/** 使用antd */
Vue.use(Antd)

/** 注册打印功能 */
Vue.use(Print)

/** 引入公共依赖 */
Vue.use(ryweb, store, router, {
  env: {
    ...process.env
  }
})

Vue.use(VCharts)
Vue.use(VueCookies)
Vue.use(hasPermission)
Vue.use(components)
